package kuzha.ast;

public class TriaryExpression extends Expression {
	public final Expression left, middle, right;
	public final TriaryOp op;
	
	public TriaryExpression(Expression left, Expression middle, Expression right, TriaryOp op) {
		this.left = left;
		this.middle = middle;
		this.right = right;
		this.op = op;
	}
	
	@Override
	public void accept(AstVisitor visitor) {
		visitor.visit(this);
	}
	@Override
	public <A, R> R accept(AstVisitor2<A, R> visitor, A object) {
		return visitor.visit(this, object);
	}
}
